//
//  WebVC.m
//  COJoke
//
//  Created by 陈渊佑 on 14/12/16.
//  Copyright (c) 2014年 carlosk. All rights reserved.
//

#import "WebVC.h"

@interface WebVC ()

@end

@implementation WebVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = self.model.title;
    UIWebView *webV = [[UIWebView alloc] initWithFrame:self.view.frame];
    NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:self.model.url]];
    [webV setScalesPageToFit:YES];

    //获取数据以后放在webView里
    [webV loadRequest:request];
    self.view = webV;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}


@end
